<template>
	<view>
		<headertop></headertop>
		<view class="flexcenter">
			<view class="contentpage" style="margin-top: 100rpx;">

				<view class="flexleft" style="margin-top: 100rpx;align-items: flex-start;">
					<leftlist :disable="true" :leftvalue="leftvalue"></leftlist>
					<!-- 八字排盘 -->
					<view class="margin_left3" v-if="leftvalue==0" style="width: 82%;">
						<view class="mainpadding4" style="border: 1rpx solid #e6e1d1;">
							<view class="flexleft">
								<view class="line margin_right2"></view>
								<view class="xiaohei fonweight">基本信息</view>
							</view>
							<view class="mainpadding">
								<view class="titletext xiaohei">缘主信息：<text
										class="xiaohui">{{dataAll.base_info.name}}</text></view>
								<view class="titletext xiaohei margin_top2">出生公历：<text
										class="xiaohui">{{dataAll.base_info.gongli}}</text></view>
								<view class="titletext xiaohei margin_top2">出生农历：<text
										class="xiaohui">{{dataAll.base_info.nongli}}</text></view>
								<view class="titletext xiaohei margin_top2">生肖星座：<text
										class="xiaohui">{{dataAll.start_info.sx}}-{{dataAll.start_info.xz}}</text>
								</view>
								<view class="titletext xiaohei margin_top2">起运周岁：<text
										class="xiaohui">{{dataAll.base_info.qiyun}}</text></view>
								<view class="titletext xiaohei margin_top2">交运日期：<text
										class="xiaohui">{{dataAll.base_info.jiaoyun}}</text></view>
							</view>
						</view>
						<view class="mainpadding4 margin_top" style="border: 1rpx solid #e6e1d1;">
							<view class="flexleft">
								<view class="line margin_right2"></view>
								<view class="xiaohei fonweight">八字排盘</view>
							</view>
							<view class="" style="padding: 30rpx 0;">
								<uni-table border emptyText="暂无更多数据">
									<!-- 表头行 -->
									<uni-tr style="background-color: #fff4f3;color: #f3281c;">
										<uni-th align="center" width="3">主星</uni-th>
										<uni-th align="center" width="5"
											v-for="item in dataAll.bazi_info.tg_cg_god">{{item}}</uni-th>
										<uni-th align="center" width="1">#</uni-th>
									</uni-tr>
									<!-- 表格数据行 -->
									<uni-tr>
										<uni-td align="center" width="3">乾造</uni-td>
										<uni-td align="center" width="5"
											v-for="item in dataAll.bazi_info.bazi">{{item}}</uni-td>
										<uni-td align="center" width="1">({{dataAll.bazi_info.kw}}空)</uni-td>
									</uni-tr>
									<uni-tr>
										<uni-td align="center" width="3">藏干</uni-td>
										<uni-td align="center" width="5"
											v-for="item in dataAll.bazi_info.dz_cg">{{item}}</uni-td>
										<uni-td align="center" width="1">#</uni-td>
									</uni-tr>
									<uni-tr>
										<uni-td align="center" width="3">副星</uni-td>
										<uni-td align="center" width="5"
											v-for="item in dataAll.bazi_info.dz_cg_god">{{item}}</uni-td>
										<uni-td align="center" width="1">#</uni-td>
									</uni-tr>
									<uni-tr>
										<uni-td align="center" width="3">星运</uni-td>
										<uni-td align="center" width="5"
											v-for="item in dataAll.bazi_info.day_cs">{{item}}</uni-td>
										<uni-td align="center" width="1">#</uni-td>
									</uni-tr>
									<uni-tr>
										<uni-td align="center" width="3">自坐</uni-td>
										<uni-td align="center" width="5"
											v-for="(value,key,index) in dataAll.detail_info.zizuo"
											:key="key">{{value}}</uni-td>
										<uni-td align="center" width="1">#</uni-td>
									</uni-tr>
									<uni-tr>
										<uni-td align="center" width="3">空亡</uni-td>
										<uni-td align="center" width="5"
											v-for="(value,key,index) in dataAll.detail_info.kongwang"
											:key="key">{{value}}</uni-td>
										<uni-td align="center" width="1">#</uni-td>
									</uni-tr>
									<uni-tr>
										<uni-td align="center" width="3">纳音</uni-td>
										<uni-td align="center" width="5"
											v-for="item in dataAll.bazi_info.na_yin">{{item}}</uni-td>
										<uni-td align="center" width="1">#</uni-td>
									</uni-tr>
								</uni-table>
							</view>
						</view>
						<view class="mainpadding4 margin_top" style="border: 1rpx solid #e6e1d1;">
							<view class="flexleft">
								<view class="line margin_right2"></view>
								<view class="xiaohei fonweight">四柱神煞</view>
							</view>
							<view class="mainpadding">
								<view class="titletext xiaohei">年柱：<text
										class="xiaohui">{{dataAll.start_info.jishen[0]}}</text></view>
								<view class="titletext xiaohei margin_top2">月柱：<text
										class="xiaohui">{{dataAll.start_info.jishen[1]}}</text></view>
								<view class="titletext xiaohei margin_top2">日柱：<text
										class="xiaohui">{{dataAll.start_info.jishen[2]}}</text></view>
								<view class="titletext xiaohei margin_top2">时柱：<text
										class="xiaohui">{{dataAll.start_info.jishen[3]}}</text></view>
							</view>
						</view>
						<view class="mainpadding4 margin_top" style="border: 1rpx solid #e6e1d1;">
							<view class="flexleft">
								<view class="line margin_right2"></view>
								<view class="xiaohei fonweight">大运排盘</view>
							</view>
							<view class="" style="padding: 30rpx 0;">
								<uni-table border emptyText="暂无更多数据">
									<!-- 表头行 -->
									<uni-tr>
										<uni-th align="center" width="2">#</uni-th>
										<uni-th align="center" width="2"
											v-for="item in dataAll.dayun_info.big_god">{{item}}</uni-th>
									</uni-tr>
									<!-- 表格数据行 -->
									<uni-tr>
										<uni-td align="center" width="2">大运</uni-td>
										<uni-td align="center" width="2"
											v-for="item in dataAll.dayun_info.big">{{item}}</uni-td>
									</uni-tr>
									<uni-tr>
										<uni-td align="center" width="2"></uni-td>
										<uni-td align="center" width="2"
											v-for="item in dataAll.dayun_info.big_cs">{{item}}</uni-td>
									</uni-tr>
									<uni-tr>
										<uni-td align="center" width="2">虚岁</uni-td>
										<uni-td align="center" width="2"
											v-for="item in dataAll.dayun_info.xu_sui">{{item}}</uni-td>
									</uni-tr>
									<uni-tr>
										<uni-td align="center" width="2">始于</uni-td>
										<uni-td align="center" width="2"
											v-for="item in dataAll.dayun_info.big_start_year">{{item}}</uni-td>
									</uni-tr>
									<uni-tr>
										<uni-td align="center" width="2"></uni-td>
										<uni-td align="center" width="2" v-for="value in dataAll.dayun_info.years_info0"
											:key="key">{{value.year_char}}</uni-td>
									</uni-tr>
									<uni-tr>
										<uni-td align="center" width="2"></uni-td>
										<uni-td align="center" width="2" v-for="value in dataAll.dayun_info.years_info1"
											:key="key">{{value.year_char}}</uni-td>
									</uni-tr>
									<uni-tr>
										<uni-td align="center" width="2"></uni-td>
										<uni-td align="center" width="2" v-for="value in dataAll.dayun_info.years_info2"
											:key="key">{{value.year_char}}</uni-td>
									</uni-tr>
									<uni-tr>
										<uni-td align="center" width="2"></uni-td>
										<uni-td align="center" width="2" v-for="value in dataAll.dayun_info.years_info3"
											:key="key">{{value.year_char}}</uni-td>
									</uni-tr>
									<uni-tr>
										<uni-td align="center" width="2"></uni-td>
										<uni-td align="center" width="2" v-for="value in dataAll.dayun_info.years_info4"
											:key="key">{{value.year_char}}</uni-td>
									</uni-tr>
									<uni-tr>
										<uni-td align="center" width="2"></uni-td>
										<uni-td align="center" width="2" v-for="value in dataAll.dayun_info.years_info5"
											:key="key">{{value.year_char}}</uni-td>
									</uni-tr>
									<uni-tr>
										<uni-td align="center" width="2"></uni-td>
										<uni-td align="center" width="2" v-for="value in dataAll.dayun_info.years_info6"
											:key="key">{{value.year_char}}</uni-td>
									</uni-tr>
									<uni-tr>
										<uni-td align="center" width="2"></uni-td>
										<uni-td align="center" width="2" v-for="value in dataAll.dayun_info.years_info7"
											:key="key">{{value.year_char}}</uni-td>
									</uni-tr>
									<uni-tr>
										<uni-td align="center" width="2"></uni-td>
										<uni-td align="center" width="2" v-for="value in dataAll.dayun_info.years_info8"
											:key="key">{{value.year_char}}</uni-td>
									</uni-tr>
									<uni-tr>
										<uni-td align="center" width="2"></uni-td>
										<uni-td align="center" width="2" v-for="value in dataAll.dayun_info.years_info9"
											:key="key">{{value.year_char}}</uni-td>
									</uni-tr>
									<uni-tr>
										<uni-td align="center" width="2">止于</uni-td>
										<uni-td align="center" width="2"
											v-for="item in dataAll.dayun_info.big_end_year">{{item}}</uni-td>
									</uni-tr>
								</uni-table>
							</view>
						</view>
						<view class="mainpadding4 margin_top" style="border: 1rpx solid #e6e1d1;">
							<view class="flexleft">
								<view class="line margin_right2"></view>
								<view class="xiaohei fonweight">大运神煞</view>
							</view>
							<view class="mainpadding2">
								<view class="titletext xiaohei margin_top2"
									v-for="(item,index) in dataAll.detail_info.dayunshensha" :key="index">
									{{item.tgdz}}：<text class="xiaohui">{{item.shensha}}</text>
								</view>
							</view>

						</view>
						<view class="bigbtn margin_top" style="width: 200px;" @click="backpage">返回重测</view>
					</view>
					<!-- 紫薇排盘 -->
					<view class="margin_left3 " v-if="leftvalue==1" style="width: 82%;">
						<view class="mainpadding4" style="border: 1rpx solid #e6e1d1;">
							<view class="flexleft">
								<view class="line margin_right2"></view>
								<view class="xiaohei fonweight">紫薇排盘</view>
							</view>
							<uni-table class="margin_top" border emptyText="暂无更多数据">
								<uni-tr>
									<uni-td align="left" width="25%" v-for="(item,index) in dataAll.gong_pan"
										:key="index" v-if="index==0 || index==1 || index==2 || index==3">
										<view class="" style="height: 30rpx;">{{item.ziweixing}}
											{{item.ziweixing_xingyao}} {{item.ziweixing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.tianfuxing}}
											{{item.tianfuxing_xingyao}} {{item.tianfuxing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.monthxing}}
											{{item.monthxing_xingyao}} {{item.monthxing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.hourxing}}
											{{item.hourxing_xingyao}} {{item.hourxing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.yearganxing}}
											{{item.yearganxing_xingyao}} {{item.yearganxing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.yearzhixing}}
											{{item.yearzhixing_xingyao}} {{item.yearzhixing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.qitaxing}}
											{{item.qitaxing_xingyao}} {{item.qitaxing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.boshi}}</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.xiaoxian}}</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.daxian}}
											{{item.changsheng}} {{item.minggong}} {{item.yinshou}}
										</view>
									</uni-td>
								</uni-tr>
								<uni-tr>
									<uni-td align="left" width="25%" v-for="(item,index) in dataAll.gong_pan"
										:key="index" v-if="index==4">
										<view class="" style="height: 30rpx;">{{item.ziweixing}}
											{{item.ziweixing_xingyao}} {{item.ziweixing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.tianfuxing}}
											{{item.tianfuxing_xingyao}} {{item.tianfuxing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.monthxing}}
											{{item.monthxing_xingyao}} {{item.monthxing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.hourxing}}
											{{item.hourxing_xingyao}} {{item.hourxing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.yearganxing}}
											{{item.yearganxing_xingyao}} {{item.yearganxing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.yearzhixing}}
											{{item.yearzhixing_xingyao}} {{item.yearzhixing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.qitaxing}}
											{{item.qitaxing_xingyao}} {{item.qitaxing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.boshi}}</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.xiaoxian}}</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.daxian}}
											{{item.changsheng}} {{item.minggong}} {{item.yinshou}}
										</view>
									</uni-td>
									<uni-td align="center" rowspan="2" colspan="2" width="50%">
										<view class="" style="height: 30rpx;">缘主姓名：<text
												class="xiaohui margin_right3">{{dataAll.base_info.name}}</text> 性别：<text
												class="xiaohui margin_right3">{{dataAll.base_info.gendertype}}</text>
											年龄：<text class="xiaohui margin_right3">{{dataAll.base_info.age}}</text>
										</view>
										<view class="margin_top1" style="height: 30rpx;">阳历：<text
												class="xiaohui margin_right3">{{dataAll.base_info.gongli}}</text></view>
										<view class="margin_top1" style="height: 30rpx;">农历：<text
												class="xiaohui margin_right3">{{dataAll.base_info.nongli}}</text></view>
										<view class="margin_top1" style="height: 30rpx;">命四化：<text
												class="xiaohui margin_right3">{{dataAll.base_info.mingsihua}}</text>
										</view>
										<view class="margin_top1" style="height: 30rpx;">
											身宫在{{dataAll.base_info.shengong}} 子斗在{{dataAll.base_info.zidou}} 流斗在{{dataAll.base_info.liudou}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">盘类： <text
												class="xiaohui margin_right3">天盘{{dataAll.base_info.mingju}}</text>
											命主<text class="xiaohui margin_right3">{{dataAll.base_info.mingzhu}}</text>
											身主<text class="xiaohui margin_right3">{{dataAll.base_info.shenzhu}}</text>
										</view>
										<view class="margin_top1" style="height: 30rpx;">乾造： <text
												class="xiaohui margin_right3">{{dataAll.base_info.yeargz}}
												{{dataAll.base_info.monthgz}} {{dataAll.base_info.daygz}}
												{{dataAll.base_info.hourgz}}</text></view>
										<view class="margin_top1" style="height: 30rpx;">纳音：<text
												class="xiaohui margin_right3">{{dataAll.base_info.yearnayin}}
												{{dataAll.base_info.monthnayin}} {{dataAll.base_info.daynayin}}
												{{dataAll.base_info.hournayin}}</text></view>
									</uni-td>
									<uni-td align="left" width="25%" v-for="(item,index) in dataAll.gong_pan"
										:key="index" v-if="index==5">
										<view class="" style="height: 30rpx;">{{item.ziweixing}}
											{{item.ziweixing_xingyao}} {{item.ziweixing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.tianfuxing}}
											{{item.tianfuxing_xingyao}} {{item.tianfuxing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.monthxing}}
											{{item.monthxing_xingyao}} {{item.monthxing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.hourxing}}
											{{item.hourxing_xingyao}} {{item.hourxing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.yearganxing}}
											{{item.yearganxing_xingyao}} {{item.yearganxing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.yearzhixing}}
											{{item.yearzhixing_xingyao}} {{item.yearzhixing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.qitaxing}}
											{{item.qitaxing_xingyao}} {{item.qitaxing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.boshi}}</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.xiaoxian}}</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.daxian}}
											{{item.changsheng}} {{item.minggong}} {{item.yinshou}}
										</view>
									</uni-td>
								</uni-tr>
								<uni-tr>
									<uni-td align="left" width="25%" v-for="(item,index) in dataAll.gong_pan"
										:key="index" v-if="index==6">
										<view class="" style="height: 30rpx;">{{item.ziweixing}}
											{{item.ziweixing_xingyao}} {{item.ziweixing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.tianfuxing}}
											{{item.tianfuxing_xingyao}} {{item.tianfuxing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.monthxing}}
											{{item.monthxing_xingyao}} {{item.monthxing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.hourxing}}
											{{item.hourxing_xingyao}} {{item.hourxing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.yearganxing}}
											{{item.yearganxing_xingyao}} {{item.yearganxing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.yearzhixing}}
											{{item.yearzhixing_xingyao}} {{item.yearzhixing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.qitaxing}}
											{{item.qitaxing_xingyao}} {{item.qitaxing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.boshi}}</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.xiaoxian}}</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.daxian}}
											{{item.changsheng}} {{item.minggong}} {{item.yinshou}}
										</view>
									</uni-td>
									<uni-td align="left" width="25%" v-for="(item,index) in dataAll.gong_pan"
										:key="index" v-if="index==7">
										<view class="" style="height: 30rpx;">{{item.ziweixing}}
											{{item.ziweixing_xingyao}} {{item.ziweixing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.tianfuxing}}
											{{item.tianfuxing_xingyao}} {{item.tianfuxing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.monthxing}}
											{{item.monthxing_xingyao}} {{item.monthxing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.hourxing}}
											{{item.hourxing_xingyao}} {{item.hourxing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.yearganxing}}
											{{item.yearganxing_xingyao}} {{item.yearganxing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.yearzhixing}}
											{{item.yearzhixing_xingyao}} {{item.yearzhixing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.qitaxing}}
											{{item.qitaxing_xingyao}} {{item.qitaxing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.boshi}}</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.xiaoxian}}</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.daxian}}
											{{item.changsheng}} {{item.minggong}} {{item.yinshou}}
										</view>
									</uni-td>
								</uni-tr>
								<uni-tr>
									<uni-td align="left" width="25%" v-for="(item,index) in dataAll.gong_pan"
										:key="index" v-if="index==8 || index==9|| index==10|| index==11">
										<view class="" style="height: 30rpx;">{{item.ziweixing}}
											{{item.ziweixing_xingyao}} {{item.ziweixing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.tianfuxing}}
											{{item.tianfuxing_xingyao}} {{item.tianfuxing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.monthxing}}
											{{item.monthxing_xingyao}} {{item.monthxing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.hourxing}}
											{{item.hourxing_xingyao}} {{item.hourxing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.yearganxing}}
											{{item.yearganxing_xingyao}} {{item.yearganxing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.yearzhixing}}
											{{item.yearzhixing_xingyao}} {{item.yearzhixing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.qitaxing}}
											{{item.qitaxing_xingyao}} {{item.qitaxing_sihua}}
										</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.boshi}}</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.xiaoxian}}</view>
										<view class="margin_top1" style="height: 30rpx;">{{item.daxian}}
											{{item.changsheng}} {{item.minggong}} {{item.yinshou}}
										</view>
									</uni-td>

								</uni-tr>
							</uni-table>
						</view>
						<view class="mainpadding4 margin_top" style="border: 1rpx solid #e6e1d1;">
							<view class="flexleft">
								<view class="line margin_right2"></view>
								<view class="xiaohei fonweight">排盘简批</view>
							</view>
							<view class="mainpadding" v-for="(item,index) in dataAll.gong_pan" :key="index">
								<view class="sanshier xiaohei fonweight">{{item.minggong}}：</view>
								<view class="xiaohui margin_top titletext"><text
										class="xiaohong">[紫微星系]：</text>{{item.ziweixing_desc}}</view>
								<view class="xiaohui margin_top titletext"><text
										class="xiaolan">[天府星系]：</text>{{item.tianfuxing_desc}}</view>
								<view class="xiaohui margin_top titletext"><text
										class="xiaolv">[辅星详解]：</text>{{item.fuxing_desc}}</view>
							</view>
						</view>
						<view class="bigbtn margin_top" style="width: 200px;" @click="backpage">返回重测</view>
					</view>
					<!-- 八字精算 -->
					<view class="margin_left3 " v-if="leftvalue==2" style="width: 82%;">
						<view class="mainpadding4" style="border: 1rpx solid #e6e1d1;">
							<view class="flexleft">
								<view class="line margin_right2"></view>
								<view class="xiaohei fonweight">基本信息</view>
							</view>
							<view class="mainpadding">
								<view class="titletext xiaohei">缘主姓名：<text
										class="xiaohui">{{dataAll.base_info.name}}</text></view>
								<view class="titletext xiaohei margin_top2">出生公历：<text
										class="xiaohui">{{dataAll.base_info.gongli}}</text></view>
								<view class="titletext xiaohei margin_top2">出生农历：<text
										class="xiaohui">{{dataAll.base_info.nongli}}</text></view>
								<view class="titletext xiaohui margin_top2"><text
										class="xiaohei">八字生辰：</text>{{dataAll.detail_info.sizhu_info.year.tg}}{{dataAll.detail_info.sizhu_info.year.dz}}年({{dataAll.detail_info.sizhu_info.year.ny}})
									{{dataAll.detail_info.sizhu_info.month.tg}}{{dataAll.detail_info.sizhu_info.month.dz}}月({{dataAll.detail_info.sizhu_info.month.ny}})
									{{dataAll.detail_info.sizhu_info.day.tg}}{{dataAll.detail_info.sizhu_info.day.dz}}日({{dataAll.detail_info.sizhu_info.day.ny}})
									{{dataAll.detail_info.sizhu_info.hour.tg}}{{dataAll.detail_info.sizhu_info.hour.dz}}时({{dataAll.detail_info.sizhu_info.hour.ny}})
								</view>
								<view class="titletext xiaohei margin_top2">星宿信息：<text
										class="xiaohui">{{dataAll.base_info.xingxiu}}</text></view>
								<view class="titletext xiaohei margin_top2">年柱纳音：<text
										class="xiaohui">{{dataAll.detail_info.sizhu_info.year.ny}}命</text></view>
								<view class="titletext xiaohei margin_top2">命卦信息：<text
										class="xiaohui">{{dataAll.base_info.minggua.minggua_name}}卦({{dataAll.base_info.minggua.minggua_fangwei}})</text>
								</view>
								<view class="titletext xiaohei margin_top2">生肖星座：<text
										class="xiaohui">{{dataAll.base_info.shengxiao}}-{{dataAll.base_info.xingzuo}}</text>
								</view>
								<view class="titletext xiaohei margin_top2">五行旺度：<text
										class="xiaohui">{{dataAll.base_info.wuxing_wangdu}}</text></view>
								<view class="titletext xiaohei margin_top2">起运信息：<text
										class="xiaohui">{{dataAll.base_info.qiyun}}</text></view>
								<view class="titletext xiaohei margin_top2">交运信息：<text
										class="xiaohui">{{dataAll.base_info.tiangan_liuyi}}</text></view>
								<view class="titletext xiaohei margin_top2">天干留意：<text
										class="xiaohui">{{dataAll.base_info.xingxiu}}</text></view>
								<view class="titletext xiaohei margin_top2">地支留意：<text
										class="xiaohui">{{dataAll.base_info.dizhi_liuyi}}</text></view>
								<view class="titletext xiaohui margin_top2"><text
										class="xiaohei">胎元命身：</text>胎息:{{dataAll.base_info.taixi}}({{dataAll.base_info.taixi_nayin}})
									胎元:{{dataAll.base_info.taiyuan}}({{dataAll.base_info.taiyuan_nayin}})命宫:{{dataAll.base_info.minggong}}({{dataAll.base_info.minggong_nayin}})身宫:{{dataAll.base_info.shengong}}({{dataAll.base_info.shengong_nayin}})
								</view>
							</view>
						</view>
						<view class="mainpadding4 margin_top" style="border: 1rpx solid #e6e1d1;">
							<view class="flexleft">
								<view class="line margin_right2"></view>
								<view class="xiaohei fonweight">喜用神分析</view>
							</view>
							<view class="mainpadding">
								<view class="xiaohei titletext">
									日主天干为【{{dataAll.base_info.xiyongshen.rizhu_tiangan}}】,
									同类为【{{dataAll.base_info.xiyongshen.tonglei}}】,
									异类为【{{dataAll.base_info.xiyongshen.yilei}}】
									{{dataAll.base_info.xiyongshen.qiangruo}},
									以【{{dataAll.base_info.xiyongshen.xiyongshen}}】为喜用神
								</view>
								<view class="xiaohei titletext">
									阴阳参考：{{dataAll.base_info.xiyongshen.xiyongshen}}
								</view>
								<view class="xiaohei titletext">
									五行统计：
									{{dataAll.base_info.xiyongshen.jin_number}}金，{{dataAll.base_info.xiyongshen.mu_number}}木，{{dataAll.base_info.xiyongshen.shui_number}}水，
									{{dataAll.base_info.xiyongshen.huo_number}}火，{{dataAll.base_info.xiyongshen.tu_number}}土，自党：{{dataAll.base_info.xiyongshen.zidang}}，异党：{{dataAll.base_info.xiyongshen.yidang}}
								</view>
								<view class="xiaohei titletext">
									五行能量：
									金：{{dataAll.base_info.xiyongshen.jin_score}}分，占比{{dataAll.base_info.xiyongshen.jin_score_percent}}，
									木：{{dataAll.base_info.xiyongshen.mu_score}}分，
									占比{{dataAll.base_info.xiyongshen.mu_score_percent}}，
									水：{{dataAll.base_info.xiyongshen.shui_score}}分，占比{{dataAll.base_info.xiyongshen.shui_score_percent}}，
									火：{{dataAll.base_info.xiyongshen.huo_score}}分，占比{{dataAll.base_info.xiyongshen.huo_score_percent}}，
									土：{{dataAll.base_info.xiyongshen.tu_score}}分，占比{{dataAll.base_info.xiyongshen.tu_score_percent}}
								</view>
							</view>
						</view>
						<view class="mainpadding4 margin_top" style="border: 1rpx solid #e6e1d1;">
							<view class="flexleft">
								<view class="line margin_right2"></view>
								<view class="xiaohei fonweight">日柱论命</view>
							</view>
							<view class="mainpadding">
								<view class="xiaohui titletext">
									{{dataAll.detail_info.sizhu_info.sizhu_indication.xingge.rizhu}}
								</view>
							</view>
						</view>
						<view class="mainpadding4 margin_top" style="border: 1rpx solid #e6e1d1;">
							<view class="flexleft">
								<view class="line margin_right2"></view>
								<view class="xiaohei fonweight">性格分析</view>
							</view>
							<view class="mainpadding">
								<view class="xiaohui titletext">
									{{dataAll.detail_info.sizhu_info.sizhu_indication.wuxing.detail_description}}
								</view>
							</view>
						</view>
						<view class="mainpadding4 margin_top" style="border: 1rpx solid #e6e1d1;">
							<view class="flexleft">
								<view class="line margin_right2"></view>
								<view class="xiaohei fonweight">财运分析</view>
							</view>
							<view class="mainpadding">
								<view class="xiaohui titletext">
									{{dataAll.detail_info.sizhu_info.sizhu_indication.caiyun.sanshishu_caiyun.simple_desc}}
									{{dataAll.detail_info.sizhu_info.sizhu_indication.caiyun.sanshishu_caiyun.detail_desc}}
								</view>
							</view>
						</view>
						<view class="mainpadding4 margin_top" style="border: 1rpx solid #e6e1d1;">
							<view class="flexleft">
								<view class="line margin_right2"></view>
								<view class="xiaohei fonweight">姻缘分析</view>
							</view>
							<view class="mainpadding">
								<view class="xiaohui titletext">
									{{dataAll.detail_info.sizhu_info.sizhu_indication.yinyuan.sanshishu_yinyuan}}
								</view>
							</view>
						</view>
						<view class="mainpadding4 margin_top" style="border: 1rpx solid #e6e1d1;">
							<view class="flexleft">
								<view class="line margin_right2"></view>
								<view class="xiaohei fonweight">运程分析</view>
							</view>
							<view class="mainpadding">
								<view class="xiaohui titletext">
									{{dataAll.detail_info.sizhu_info.sizhu_indication.chenggu.description}}
								</view>
							</view>
						</view>
						<view class="mainpadding4 margin_top" style="border: 1rpx solid #e6e1d1;">
							<view class="flexleft">
								<view class="line margin_right2"></view>
								<view class="xiaohei fonweight">五行分析</view>
							</view>
							<view class="mainpadding">
								<view class="xiaohui titletext">
									{{dataAll.detail_info.sizhu_info.sizhu_indication.wuxing.detail_desc}}.
									{{dataAll.detail_info.sizhu_info.sizhu_indication.wuxing.simple_description}}
								</view>
							</view>
						</view>
						<view class="mainpadding4 margin_top" style="border: 1rpx solid #e6e1d1;">
							<view class="flexleft">
								<view class="line margin_right2"></view>
								<view class="xiaohei fonweight">命运分析</view>
							</view>
							<view class="mainpadding">
								<view class="xiaohui titletext">
									{{dataAll.detail_info.sizhu_info.sizhu_indication.mingyun.sanshishu_mingyun}}
								</view>
							</view>
						</view>
						<view class="bigbtn margin_top" style="width: 200px;" @click="backpage">返回重测</view>
					</view>
					<!-- 奇门遁甲 -->
					<view class="margin_left3 " v-if="leftvalue==3" style="width: 82%;">
						<view class="mainpadding4" style="border: 1rpx solid #e6e1d1;">
							<view class="flexleft">
								<view class="line margin_right2"></view>
								<view class="xiaohei fonweight">基本信息</view>
							</view>
							<view class="mainpadding2">
								<view class="flexleft margin_top2">
									<view class="titletext xiaohei ">缘主姓名：</view>
									<view class="titletext xiaohui">{{dataAll.name}}({{dataAll.sex}})</view>
								</view>
								<view class="flexleft margin_top2">
									<view class="titletext xiaohei ">出生公历：</view>
									<view class="titletext xiaohui">{{dataAll.gongli}}</view>
								</view>
								<view class="flexleft margin_top2">
									<view class="titletext xiaohei ">出生农历：</view>
									<view class="titletext xiaohui">{{dataAll.nongli}}</view>
								</view>
								<view class="flexleft margin_top2">
									<view class="titletext xiaohei ">上一节气：</view>
									<view class="titletext xiaohui">{{dataAll.jieqi_pre}}</view>
								</view>
								<view class="flexleft margin_top2">
									<view class="titletext xiaohei ">下一节气：</view>
									<view class="titletext xiaohui">{{dataAll.jieqi_next}}</view>
								</view>
								<view class="flexleft margin_top2">
									<view class="titletext xiaohei ">四柱：</view>
									<view class="titletext xiaohui">
										{{dataAll.sizhu_info.year_gan}}{{dataAll.sizhu_info.year_zhi}}
										{{dataAll.sizhu_info.month_gan}}{{dataAll.sizhu_info.month_zhi}}
										{{dataAll.sizhu_info.day_gan}}{{dataAll.sizhu_info.day_gan}}
										{{dataAll.sizhu_info.hour_gan}}{{dataAll.sizhu_info.hour_zhi}}</view>
								</view>
								<view class="flexleft margin_top2">
									<view class="titletext xiaohei ">旬空：</view>
									<view class="titletext xiaohui">{{dataAll.xunkong_info.year_xunkong}}(年)
										{{dataAll.xunkong_info.month_xunkong}}(月)
										{{dataAll.xunkong_info.day_xunkong}}(日)
										{{dataAll.xunkong_info.hour_xunkong}}(时)
									</view>
								</view>
								<view class="flexleft margin_top2">
									<view class="titletext xiaohei ">旬首：</view>
									<view class="titletext xiaohui">
										日空-{{dataAll.xunkong_info.day_xunkong}}({{dataAll.xunshou_info.day_xunshou}}旬) 时空-{{dataAll.xunkong_info.hour_xunkong}}({{dataAll.xunshou_info.hour_xunshou}}庚)
									</view>
								</view>
								<view class="flexleft margin_top2">
									<view class="titletext xiaohei ">定局：</view>
									<view class="titletext xiaohui">{{dataAll.dunju}} {{dataAll.dingju}}
										{{dataAll.panlei}}</view>
								</view>
								<view class="flexleft margin_top2">
									<view class="titletext xiaohei ">值符：</view>
									<view class="titletext xiaohui">
										{{dataAll.zhifu_info.zhifu_name}}落{{dataAll.zhifu_info.zhifu_luogong}}宫</view>
								</view>
								<view class="flexleft margin_top2">
									<view class="titletext xiaohei ">值使：</view>
									<view class="titletext xiaohui">
										{{dataAll.zhifu_info.zhishi_name}}落{{dataAll.zhifu_info.zhishi_luogong}}宫</view>
								</view>
							</view>
						</view>
						<view class="mainpadding4 margin_top" style="border: 1rpx solid #e6e1d1;">
							<view class="flexleft">
								<view class="line margin_right2"></view>
								<view class="xiaohei fonweight">奇门遁甲盘</view>
							</view>
							<view class="flexcenter">
								<view class="">
									<uni-table class="margin_top" border emptyText="暂无更多数据">
										<uni-tr v-for="(item,index) in qmdjp" :key="index">
											<uni-td align="right" width="33.33%"
												style="padding: 40rpx 60rpx;height: auto;"
												v-for="(ite,ind) in qmdjp[index]" :key="ind">
												<view class="">{{ite.tianpan.jiuxing}} {{ite.tianpan.bashen}} </view>
												<view class="">{{ite.dipan.bashen}} {{ite.dipan.bagua}}
													{{ite.renpan.bamen}}
												</view>
												<view class="">{{ite.dipan.sanqiliuyi}} </view>
											</uni-td>
										</uni-tr>
									</uni-table>
								</view>
							</view>
						</view>
						<view class="mainpadding4 margin_top" style="border: 1rpx solid #e6e1d1;">
							<view class="flexleft">
								<view class="line margin_right2"></view>
								<view class="xiaohei fonweight">排盘简批</view>
							</view>
							<view class="mainpadding" v-for="(item,index) in dataAll.gong_pan" :key="index">
								<view class="sanshier xiaohei fonweight">{{item.renpan.bamen}}:</view>
								<view class="xiaohui titletext">
								[宫局]：{{item.description.gong_ju}}
								</view>
								<view class="xiaohui titletext">
								[宫局解析]：{{item.description.gong_ju_desc}}
								</view>
								<view class="xiaohui titletext">
								[落局解析]：{{item.description.luo_gong_desc}}
								</view>
							</view>
						</view>
						<view class="bigbtn margin_top" style="width: 200px;" @click="backpage">返回重测</view>
					</view>
					<!-- 奇门遁甲 -->
					<view class="margin_left3 " v-if="leftvalue==4" style="width: 82%;">
						<view class="mainpadding4" style="border: 1rpx solid #e6e1d1;">
							<view class="flexleft">
								<view class="line margin_right2"></view>
								<view class="xiaohei fonweight">基本信息</view>
							</view>
							<view class="mainpadding2">
								<view class="flexleft margin_top2">
									<view class="titletext xiaohei ">您输入的数：</view>
									<view class="titletext xiaohong">{{dataAll.data}}</view>
								</view>
								
								<view class="flexleft margin_top2">
									<view class="titletext xiaohei ">吉凶：</view>
									<view class="titletext xiaohui">{{dataAll.xiongji}}</view>
								</view>
								<view class="flexleft margin_top2">
									<view class="titletext xiaohei ">数理：</view>
									<view class="titletext xiaohui">
										第{{dataAll.shuli}}</view>
								</view>
								<view class="flexleft margin_top2">
									<view class="titletext xiaohei ">签语：</view>
									<view class="titletext xiaohui">
										{{dataAll.desc}}</view>
								</view>
							</view>
						</view>
						<view class="bigbtn margin_top" style="width: 200px;" @click="backpage">返回重测</view>
					</view>
				</view>
			</view>
		</view>
		<fotterbom></fotterbom>
		<!-- <view class="bigbtn margin_top" style="width: 200px;" @click="backpage">返回重测</view> -->
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	import headertop from "@/components/headertop/headertop.vue"
	import leftlist from "@/components/leftlist/leftlist.vue"
	import fotterbom from "@/components/fotterbom/fotterbom.vue"
	export default {
		data() {
			return {
				dataAll: {},
				leftvalue: 0,
				qmdjp: []
			}
		},
		onLoad(options) {
			// uni.setStorageSync("token", "49ad2946-89e6-4df5-841e-2c7c3a2d1188")
			// uni.setStorageSync("user_id", "2")
			let data = JSON.parse(decodeURIComponent(options.msg));
			console.log(data);
			this.leftvalue = data.leftvalue
			this.getDetail(data)
		},
		methods: {
			backpage() {
				uni.navigateBack(1)
			},
			getDetail(data) {
				httpRequest.request(data.url, 'POST', data.data).then(res => {
					if(res.code==1){
						this.dataAll = res.data
						if (this.leftvalue == 3) {
							this.qmdjp = this.chuliemo(res.data.gong_pan, 3)
						}
					}else{
						this.$message.error(res.msg);
						setTimeout(()=>{
							uni.navigateBack(1)
						},1000)
					}
					
				}).catch(err => {})
			},
			chuliemo(arr, num) { //转化为num等分的数组
				var newArr = []
				for (var i = 0; i < arr.length; i += num) {
					newArr.push(arr.slice(i, i + num))
				}
				console.log(newArr);
				return newArr
			},
		}
	}
</script>

<style>
	.line {
		width: 5rpx;
		height: 30rpx;
		background-color: #F33B31;
		border-radius: 0 0 5rpx 5rpx;
	}
</style>